<?php
 
 // = $_POST["a"];
$a = $_GET["a"];
echo $a;
echo "<br/>";

//$b = $_POST["b"];
$b = $_GET["b"];
echo $b;
echo "<br/>";

$c = $_GET["c"];
echo $c;
echo "<br/>";

echo "你好";

$ip= "mysql:host=127.0.0.1;";
$name = "root";
$pwd = "root";
$conn = new PDO($ip,$name,$pwd);

$conn->exec("set charset utf8;");

$conn->exec("use hoho;");

$sql="delete from student where id=$a";
$sqls=$conn->prepare($sql);
$sqls->execute();

$sql="select * from student";
$sqls=$conn->prepare($sql);
$ok=$sqls->execute();
//var_dump($sqls->fetch());

echo json_encode($sqls->fetchAll());

header("Content-Type: text/html; charset=utf-8");
